﻿package com.gamemeal.particle.steering {
	import com.gamemeal.geom.VelocityPoint3;
	/**
	 * @author Colin
	 */
	public class SteeringComposition implements ISteering{
		private var steerings:Array=[];
		public function addSteering(steering:ISteering):void{
			steerings.push(steering);
		}
		
		public function apply(p:VelocityPoint3,tx:Number,ty:Number,tz:Number=null):void{
			for(var i:int=0;i<steerings.length;i++){
				ISteering(steerings[i]).apply(p,tx,ty,tz);
			}
		}
	}
}
